<?php

class Home extends Controller {

	function Home()
	{
		parent::Controller();	
		$this->load->model('Comments_model', 'Comments');
	}
	
	function index()
	{
		$data['comments'] = $this->Comments->get_last(10);
		$this->load->view('layout/header');
		$this->load->view('home', $data);
		$this->load->view('layout/footer');
	}
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */